package lab02.test33;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Test33 {
    public static void main(String[] args) {
        List<String> list=new ArrayList<String>();
        Scanner in=new Scanner(System.in);
        System.out.println("please input words:");
        String a=in.nextLine();
        String[] b=a.split(".");
        for(int c=0;c<b.length;c++){
            for(int m=c+1;m<b.length;m++){
                if(b[c].compareToIgnoreCase(b[m])>0){
                    a=b[c];
                    b[m]=a;
                }
            }
        }
    }
}




